package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReservationDto extends BaseEntity {
    /**
     * 预约人姓名
     */
    @Excel(name = "预约人姓名")
    @ApiModelProperty(value = "预约人姓名")
    private String name;

    /**
     * 预约人手机号
     */
    @Excel(name = "预约人手机号")
    @ApiModelProperty(value = "预约人手机号")
    private String mobile;

    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约时间")
    private Date time;

    /**
     * 探访人
     */
    @Excel(name = "探访人")
    @ApiModelProperty(value = "探访人")
    private String visitor;

    /**
     * 预约类型，0：参观预约，1：探访预约
     */
    @Excel(name = "预约类型，0：参观预约，1：探访预约")
    @ApiModelProperty(value = "预约类型，0：参观预约，1：探访预约")
    private Integer type;
}
